package com.djq.hhc.model.post;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.djq.hhc.model.base.BaseEntity;
import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: dadd7
 * @Date: 2023/03/02/下午 4:18
 * @Description:
 */
@Data
@TableName("post_info")
public class PostInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableField("title")
    private String title;

    @TableField("text")
    private String text;

    @TableField("pic")
    private String pic;

    @TableField("type")
    private Long type;

    @TableField("user_id")
    private Long userId;

    @TableField("liked")
    private Long liked;

    @TableField(exist = false)
    private Boolean isLike;
}
